import "package:ct_pa_majordomo/config/theme_vars.dart";
import "package:flutter/material.dart";

ThemeData getThemeConfig(BuildContext context) {
  return ThemeData(
    colorScheme: ColorScheme.fromSeed(
      error: ThemeVars.colorError,
      primary: ThemeVars.colorPrimary,
      seedColor: ThemeVars.colorPrimary,
    ),
    dialogTheme: const DialogTheme(backgroundColor: Colors.white),
    bottomSheetTheme: const BottomSheetThemeData(backgroundColor: Colors.white),
    appBarTheme: const AppBarTheme(
      toolbarHeight: ThemeVars.toolbarHeight,
    ),
    inputDecorationTheme: const InputDecorationTheme(
      contentPadding: EdgeInsets.symmetric(horizontal: 16),
      hintStyle: TextStyle(color: ThemeVars.colorTextTer),
    ),
    materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
    scaffoldBackgroundColor: ThemeVars.colorBackground,
    scrollbarTheme: const ScrollbarThemeData(
      radius: Radius.circular(100),
      thumbVisibility: WidgetStatePropertyAll(true),
    ),
    textTheme: Theme.of(context).textTheme.apply(
          bodyColor: ThemeVars.colorText,
          decorationColor: ThemeVars.colorText,
          displayColor: ThemeVars.colorText,
        ),
  );
}
